public class Text4 {
    public static void main(String[] args) {
        Thread t1 = new Thread(()->{
            while(true){
                System.out.println("Thread t1");
            }
        });

        Thread t2 = new Thread(()->{
            while(true){
                System.out.println("Thread t2");
            }
        });

        t1.start();
        t2.start();
    }
}
